package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2025/2/25 21:44
*/

// CGGameAUPromotionCodeDaily 云游戏AU邀请码的日报表
type CGGameAUPromotionCodeDaily struct {
	ID            int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	PromotionCode string         `json:"promotion_code" gorm:"column:promotion_code;type:varchar(200);not null;default:'';comment:邀请码"`
	UV            int64          `json:"uv" gorm:"column:uv;type:bigint;not null;default:0;comment:UV"`
	PV            int64          `json:"pv" gorm:"column:pv;type:bigint;not null;default:0;comment:PV"`
	TimeOfDaily   time.Time      `json:"time_of_daily" gorm:"column:time_of_daily;type:datetime;comment:日报创建时间"`
	CreatedAt     time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt     time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt     gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUPromotionCodeDaily) TableName() string {
	return "cg_game_au_promotion_code_daily"
}
